GOTO statements have not changed with the implementation of the While loops, but note that you can use GOTO statements to jump into or out of a While loop.
When jumping into a While loop, you bypass the check of the While condition. The condition is not checked until a Continue or Wend statement is encountered. If the While condition is true, you stay in the loop. Otherwise, control moves to the next statement following the Wend for that loop.
If a GoTo statement is encountered within a While…Wend loop, control passes to the location of the destination label named. This label may be in or outside the control of the While statement.
© Copyright 2018, Oracle and/or its affiliates. All rights reserved. Legal Notices